package Message.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class Employee implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;
    private String name;

    private String username;

    private String password;

    private String phone;

    private String sex;

    @JsonProperty("idNumber")
    private String id_number;

    private Integer status;

    // 该注解可以控制响应数据的日期格式
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("createTime")
    private LocalDateTime create_time;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("updateTime")
    private LocalDateTime update_time;

    @JsonProperty("createUser")
    private Long create_user;

    @JsonProperty("updateUser")
    private Long update_user;

}







